@echo off

echo Processo iniciado!

set TOMCAT_HOME=C:\temp\projects\apache-tomcat-6.0.14
set TOMCAT_LIB_PATH=%TOMCAT_HOME%\lib
set APP_NAME=jOpinionPoll
set APP_PATH=%TOMCAT_HOME%\webapps\%APP_NAME%
set APP_LIB_PATH=%APP_PATH%\WEB-INF\lib
set CLASS_PATH=%TOMCAT_LIB_PATH%\el-api.jar;%TOMCAT_LIB_PATH%\servlet-api.jar;%TOMCAT_LIB_PATH%\jsp-api.jar;%APP_LIB_PATH%\richfaces-impl-3.1.2.GA.jar;%APP_LIB_PATH%\hibernate-entitymanager.jar;%APP_LIB_PATH%\jsf-api.jar;%APP_LIB_PATH%\spring.jar;%APP_LIB_PATH%\ejb3-persistence.jar;%APP_LIB_PATH%\richfaces-ui-3.1.2.GA.jar;%APP_LIB_PATH%\acegi-security-1.0.4.jar;%APP_LIB_PATH%\jsf-facelets-1.2.jar;%APP_LIB_PATH%\richfaces-api-3.1.2.GA.jar;%APP_LIB_PATH%\jasperreports-2.0.2.jar

rem for %f in (*.jar) do set CLASS_PATH2=%CLASS_PATH2%;%f

javac -Xlint:unchecked -Xlint:deprecation -cp %CLASS_PATH% net/sf/jOpinionPoll/relatorio/*.java  net/sf/jOpinionPoll/miscellaneous/*.java net/sf/jOpinionPoll/bundle/*.java net/sf/jOpinionPoll/controller/*.java net/sf/jOpinionPoll/dao/*.java net/sf/jOpinionPoll/dao/jpa/*.java net/sf/jOpinionPoll/entity/*.java net/sf/jOpinionPoll/facade/*.java net/sf/jOpinionPoll/tag/validator/*.java net/sf/jOpinionPoll/facade/impl/*.java net/sf/jOpinionPoll/tag/security/*.java net/sf/jOpinionPoll/tag/*.java net/sf/jOpinionPoll/factory/*.java net/sf/jOpinionPoll/controller/*.java net/sf/jOpinionPoll/factory/*.java net/sf/jOpinionPoll/controller/cliente/*.java net/sf/jOpinionPoll/factory/*.java net/sf/jOpinionPoll/controller/questionario/*.java net/sf/jOpinionPoll/factory/*.java net/sf/jOpinionPoll/controller/usuario/*.java net/sf/jOpinionPoll/security/*.java net/sf/jOpinionPoll/tag/component/*.java

echo Processo concluido!

pause